<style type="text/css">
.right-section .item{ width: 167px;  background: #FFF; margin: 9px; margin-bottom: 0; float: left; text-align: center; }
.right-section .item:nth-child(4n+1){ clear:both;}
.right-section .item .tc{ width: 165px; height: 165px; border: 1px solid #DDD;}
.right-section .item a.clearfix{ padding-top: 5px;}
.right-section .item p{ line-height: 1.3;}
.right-section .item p span{ color:#C00;}
.right-section .item:hover *{ border-color:#007ac7; color:#007ac7;}
.top-slider{
    width:940px;
    height:410px;
}
.item-box .item-hot-banner {
    text-align: center;
    padding-top: 0px!important;
    height: 410px;
    width: 100%;
}
</style>
<include file="Public:left" />
<div class="item-details item-list">
                <div class="item-hot-banner">
                    <!-- 轮播背景 -->
    <div class="top-slider">
        <ul class="slider-banner">
        
            <li style="background: transparent url({$themeDir}public/src/img/slider_01.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
            <li style="background: transparent url({$themeDir}public/src/img/slider_02.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
            <li style="background: transparent url({$themeDir}public/src/img/slider_03.jpg) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
           <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/>
        </a>
            </li>
        </ul>
        <!-- 页码 -->
        <div class="slider-pager" id="bx-pager">
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
            <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="1" hideFocus="true">
          <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
           <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
        </div>
        <!-- 页码 -->
    </div>
    <!-- 轮播背景 -->
<div id="slideBox" class="slideBox" style="display:none">
	<span class="prev"></span>
	<span class="next"></span>
	<div class="hd">
		<ul>
			<?php 
			$i = 1;
			foreach($slides as $slide){
			?>
			<li><?php echo $i; ?></li>
		<?php $i++; } ?>
		</ul>
	</div>
	<div class="bd">
		<ul>
		<?php 
		foreach($slides as $slide){
		?>
			<li><a href="<?php echo $slide['link']; ?>" target="_blank">
				<img src="<?php echo $slide['pic']; ?>" alt="<?php echo $slide['title']; ?>" title="<?php echo $slide['title']; ?>" />				
			</a></li>
		<?php } ?>
		</ul>
	</div>
</div>
                </div>
                <div class="item-list-title">
                    热销产品
                </div>
                <input type="hidden" id='hiddenpage' value='<?php echo $page?>'>
                <div class="item-list-list">
                    <ul class="list">
                    <?php $paperno = 10; $count = count($list); $page = empty($_GET['page'])?1:$_GET['page']; $pages = intval(count($list)/$paperno)+1;$start = ($page-1)*$paperno;$end=($page)*$paperno+1;
                    if($end>$count){
                        $end=$count;
                    }?>
                     <?php for($j=$start;$j<$end;$j++ ){ ?>
                   
                        <li>
                            <div class="pic">
                                <a href="<?php echo uri($list[$j]); ?>"><img src="<?php echo $list[$j]['thumb']; ?>"></a>
                            </div>
                            <div class="txt">
                                <a href="#" ><p><?php echo $list[$j]['title']; ?></p><p>
<?php echo $list[$j]['title']; ?></p><p>
价格:<span><?php echo $v['shop_price']; ?></span></p></a>
                            </div>
                        </li>
                      <?php } ?> 
                    </ul>
                  
                    <!-- 分页 -->
                    <div class="wrap page-box">
                        <div class="pages">
                            <ul class="pagination">
                            <?php  for ($i=1;$i<=$pages;$i++){?>
                                <!--   <li class="pagination-disabled pagination-prev"><a href="#">上一页</a></li> -->
                                <?php  if($page==$i){?>
                                     <li class="pagination-item pagination-item-1 pagination-item-active"><a href="?page=<?php echo $i;?>"><?php echo $i;?></a></li>
                               <?php }else{ ?>
                                   <li class="pagination-item pagination-item-1 "><a href="?page=<?php echo $i;?>"><?php echo $i;?></a></li>
                                   <?php  } ?>
                               
                               <?php }?>
<!--                                 <li class="pagination-item pagination-item-2"><a href="?page=1">2</a></li> -->
<!--                                 <li class="pagination-item pagination-item-3"><a href="#">3</a></li> -->
<!--                                 <li class="pagination-item pagination-item-4"><a href="#">4</a></li> -->
<!--                                 <li class="pagination-item pagination-item-5"><a href="#">5</a></li> -->
                                <li class="pagination-next"><a href="#"><span class="square"></span><span class="square1"></span></a></li>
                                <div class="pagination-options">
                                    <div class="pagination-options-quick-jumper">
                                        <input  id = "pagetext" type="text" value="1">
                                        <span class="pagination-options-go">跳转</span>
                                    </div>
                                </div>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
	<script>
	$(document).on('click','.pagination-options-go',function(){
		$href = location.href.split('?');
		location.href = $href[0]+'?page='+$("#pagetext").val();
	})
	</script>	